﻿using System;
using SqlSugar;

namespace NP.BPMReportPlatform.Entities.BPM_Business
{
    /// <summary>
    /// 框架订单流程主表
    /// </summary>
    [SugarTable("FrameOrderMain")]
    public class FrameOrderMain
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public Guid ID { get; set; }

        /// <summary>
        /// 实例Id
        /// </summary>
        public string InstanceNumber { get; set; }

        /// <summary>
        /// 流程主题
        /// </summary>
        public string ProcessTopic { get; set; }

        /// <summary>
        /// 发起时间
        /// </summary>
        public DateTime? ProcessStartTime { get; set; }

        /// <summary>
        /// 发起人名称
        /// </summary>
        public string ProcessStartUserName { get; set; }

        /// <summary>
        /// 流程是否结束
        /// </summary>
        public bool? IsEnd { get; set; }

        /// <summary>
        /// 费用类型
        /// </summary>
        public string CostType { get; set; }

        /// <summary>
        /// 申请人工号
        /// </summary>
        public string ApplyNumber { get; set; }

        /// <summary>
        /// 申请人姓名
        /// </summary>
        public string ApplyName { get; set; }

        /// <summary>
        /// 单据申请类型
        /// </summary>
        public string DocApplyType { get; set; }

        /// <summary>
        /// 复制原流程编号
        /// </summary>
        public string OldinstanceNumber { get; set; }

        /// <summary>
        /// 申请人职级
        /// </summary>
        public string ApplyerRank { get; set; }

        /// <summary>
        /// 人事范围
        /// </summary>
        public string ScopePersonnel { get; set; }

        /// <summary>
        /// 申请人职称
        /// </summary>
        public string ApplyerTitle { get; set; }

        /// <summary>
        /// 岗位
        /// </summary>
        public string ApplyerJob { get; set; }

        /// <summary>
        /// 一级部门
        /// </summary>
        public string Department0 { get; set; }

        /// <summary>
        /// 二级部门
        /// </summary>
        public string Department1 { get; set; }

        /// <summary>
        /// 三级部门
        /// </summary>
        public string Department2 { get; set; }

        /// <summary>
        /// 四级部门
        /// </summary>
        public string Department3 { get; set; }

        /// <summary>
        /// 五级部门
        /// </summary>
        public string Department4 { get; set; }

        /// <summary>
        /// 六级部门
        /// </summary>
        public string Department5 { get; set; }

        /// <summary>
        /// 七级部门
        /// </summary>
        public string Department6 { get; set; }

        /// <summary>
        /// 八级部门
        /// </summary>
        public string Department7 { get; set; }

        /// <summary>
        /// 九级部门
        /// </summary>
        public string Department8 { get; set; }

        /// <summary>
        /// 十级部门
        /// </summary>
        public string Department9 { get; set; }

        /// <summary>
        /// 到职日期
        /// </summary>
        public DateTime? JoinDate { get; set; }

        /// <summary>
        /// 成本中心是否变化
        /// </summary>
        public bool? CostCenterChange { get; set; }

        /// <summary>
        /// 成本中心
        /// </summary>
        public string WorkPlace { get; set; }

        /// <summary>
        /// 工作地点
        /// </summary>
        public string CostCenter { get; set; }

        /// <summary>
        /// 驾驶证
        /// </summary>
        public string DriverLicense { get; set; }

        /// <summary>
        /// 驾驶证有效期开始
        /// </summary>
        public DateTime? DriverLicenseDatebegin { get; set; }

        /// <summary>
        /// 驾驶证有效期结束
        /// </summary>
        public DateTime? DriverLicenseDateend { get; set; }

        /// <summary>
        /// 行驶证
        /// </summary>
        public string VehicleLicense { get; set; }

        /// <summary>
        /// 行驶证有效期开始
        /// </summary>
        public DateTime? VehicleLicenseDatebegin { get; set; }

        /// <summary>
        /// 行驶证有效期结束
        /// </summary>
        public DateTime? VehicleLicenseDateend { get; set; }

        /// <summary>
        /// 商业险
        /// </summary>
        public string BusinessRisks { get; set; }

        /// <summary>
        /// 商业险有效期开始
        /// </summary>
        public DateTime? BusinessRisksDatebegin { get; set; }

        /// <summary>
        /// 商业险有效期结束
        /// </summary>
        public DateTime? BusinessRisksDateend { get; set; }

        /// <summary>
        /// 交强险
        /// </summary>
        public string Insurance { get; set; }

        /// <summary>
        /// 交强险有效期开始
        /// </summary>
        public DateTime? InsuranceDatebegin { get; set; }

        /// <summary>
        /// 交强险有效期结束
        /// </summary>
        public DateTime? InsuranceDateend { get; set; }

        /// <summary>
        /// 补贴生效日期
        /// </summary>
        public DateTime? SubsidystartDate { get; set; }

        /// <summary>
        /// 补贴结束日期
        /// </summary>
        public DateTime? SubsidyEndDate { get; set; }

        /// <summary>
        /// 申请补贴类型
        /// </summary>
        public string ApplyTypeSubsidy { get; set; }

        /// <summary>
        /// 工作职责&申请补贴理由
        /// </summary>
        public string JobReason { get; set; }

        /// <summary>
        /// 交通费用补贴
        /// </summary>
        public string TransportationSubsidy { get; set; }

        /// <summary>
        /// 交通补贴
        /// </summary>
        public string TransportationSubsidy2 { get; set; }

        /// <summary>
        /// JsonData数据
        /// </summary>
        public string JsonData { get; set; }

        /// <summary>
        /// 车辆品牌
        /// </summary>
        public string Vehiclebrand { get; set; }

        /// <summary>
        /// 车辆号码
        /// </summary>
        public string Vehiclenumber { get; set; }

        /// <summary>
        /// 车型
        /// </summary>
        public string VehicleType { get; set; }

        /// <summary>
        /// 排量
        /// </summary>
        public string Displacement { get; set; }

        /// <summary>
        /// 机动车登记证书扫描
        /// </summary>
        public string ScanRegistrate { get; set; }

        /// <summary>
        /// 登记日期
        /// </summary>
        public DateTime? ScanRegistrateDate { get; set; }

        /// <summary>
        /// 车辆产权证明书扫描
        /// </summary>
        public string ScanOwnership { get; set; }

        /// <summary>
        /// 车辆购置费&购置税发票扫描件
        /// </summary>
        public string ScanVehiclePurchase { get; set; }

        /// <summary>
        /// 购车时间
        /// </summary>
        public DateTime? ScanVehiclePurchaseDate { get; set; }

        /// <summary>
        /// 强制保险保险公司
        /// </summary>
        public string InsuranceCompany { get; set; }

        /// <summary>
        /// 强制保险保险单号
        /// </summary>
        public string InsuranceNumber { get; set; }

        /// <summary>
        /// 机动车保险保险公司
        /// </summary>
        public string InsuranceCompanytwo { get; set; }

        /// <summary>
        /// 机动车保险保险单号
        /// </summary>
        public string InsuranceNumbertwo { get; set; }

        /// <summary>
        /// 补贴终止原因
        /// </summary>
        public string Finalreason { get; set; }

        /// <summary>
        /// 补贴终止日期
        /// </summary>
        public DateTime? SubsidyfinalDate { get; set; }

        /// <summary>
        /// 计划协议编号
        /// </summary>
        public string PlanagreementNo { get; set; }

        /// <summary>
        /// 外派区域
        /// </summary>
        public string Extraarea { get; set; }

        /// <summary>
        /// AB目标
        /// </summary>
        public string Abtarget { get; set; }

        /// <summary>
        ///  未同步：0 已同步：1 薪资组确认：2
        /// </summary>
        public string BusinessType { get; set; }

        public DateTime? HRBPSubsidyEndDate { get; set; }
        public string HRBPTransportationSubsidy { get; set; }
        public string HRBPTransportationSubsidy2 { get; set; }
        public DateTime? HRBPSubsidystartDate { get; set; }
        public DateTime? HRBPFinalSubsidyEndDate { get; set; }
        public string HRBPFinalTransportationSubsidy { get; set; }
        public string HRBPFinalTransportationSubsidy2 { get; set; }
        public DateTime? HRBPFinalSubsidystartDate { get; set; }

        public string ABKRS { get; set; }
    }
}